//
//  RotViewsAppDelegate.m
//  RotViews
//
//  Created by Kenji Hollis on 3/26/09.
//  Copyright Bitgate Mobile, LLC. 2009. All rights reserved.
//

#import "RotViewsAppDelegate.h"
#import "RotViewsViewController.h"
#import "RotatingViewController.h"
#import "PortraitViewController.h"
#import "LandscapeViewController.h"

@implementation RotViewsAppDelegate

@synthesize window;
@synthesize viewController;


- (void)applicationDidFinishLaunching:(UIApplication *)application {
	// To set up your Rotating View Controller, simply set up the portrait and landcsape view controllers, then attach the
	// rotating view controller's code.  That's it!  I've set up two controllers: portrait and landscape with sample buttons.
	// Throw it on your device, and watch it go.  It's that simple.
	
    RotatingViewController *rvController = [[RotatingViewController alloc] init];
	
	[rvController setPortraitViewController:[[PortraitViewController alloc] init]];
	[rvController setLandscapeViewController:[[LandscapeViewController alloc] init]];
	
    // Override point for customization after app launch    
    [window addSubview:rvController.view];
    [window makeKeyAndVisible];
}


- (void)dealloc {
    [viewController release];
    [window release];
    [super dealloc];
}


@end
